import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listUuser(query) {
  return request({
    url: '/system/uuser/list',
    method: 'get',
    params: query
  })
}

// 查询用户详细
export function getUuser(uId) {
  return request({
    url: '/system/uuser/' + praseStrEmpty(uId),
    method: 'get'
  })
}

// 新增用户
export function addUuser(data) {
  return request({
    url: '/system/uuser',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateUuser(data) {
  return request({
    url: '/system/uuser',
    method: 'put',
    data: data
  })
}

// 删除用户
export function delUuser(uId) {
  return request({
    url: '/system/uuser/' + uId,
    method: 'delete'
  })
}

// 导出用户
export function exportUuser(query) {
  return request({
    url: '/system/uuser/export',
    method: 'get',
    params: query
  })
}